<?php
//$newFile = 'public/image/'.$_FILES['file']['name'];
//文件物理地址
$newFile = $_FILES['file']['name'];

//移动到指定地址
move_uploaded_file($_FILES['file']['tmp_name'],$newFile);

header("location:userinfo.php?log=".$_FILES['file']['name']);
